package com.imooc.sell.utils;

import java.util.Random;

public class KeyUtil {

    //时间+随机数
    public  static synchronized  String genUniqueKey(){

        Random random = new Random();

        System.currentTimeMillis();

       Integer number = random.nextInt(900000)+ 100000;

       return System.currentTimeMillis() + number + "";
    }

    public static void main(String[] args){

        Random random = new Random();

        random.nextInt(5);
    }
}
